<template>
	<view class="uni-chechbox-bar" :style="{'border-color': checked? colorActive: color}">
		<icon-bar v-if="checked" name='icondagou1' :color='colorActive'></icon-bar>
	</view>
</template>

<script>
	export default {
		name: 'uniCheckboxBar',
		title: '复选框',
		props: {
			color: {
				type: String,
				default: '#666'
			},
			colorActive: {
				type: String,
				default: '#1296db'
			},
			checked: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	@charset "UTF-8";
	.uni-chechbox-bar{
		width: 40upx;
		height: 40upx;
		border: solid 2upx #eee;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 10upx;
	}
</style>
